/**
 *  YMC配置文件.
 *  Version 1.0.0
*/

var HOST_NAME = window.location.host;

var YMC_HTTP_URL = {};
/* 
 *  #dev 环境. 
*/
var HTTP_DEV = 'http://221.229.34.114:8080/';

/* 
 *  #gqc 环境. 
*/
var HTTP_GQC = 'http://221.229.34.114:8080/';

/* 
 *  #pre 环境. 
*/
var HTTP_PRE = 'http://221.229.34.114:8080/';
/* 
 *  #prd 环境. 
*/
var HTTP_PRD = 'http://221.229.34.114:8080/';

// 与后台联调地址.
var HTTP_SERVER = 'http://10.16.46.167:8080/'


/**  URL链接配置.
 *  vuejs 单页应用特别需要.
*/
var HTML_DEV = ''
var HTML_GQC = ''
var HTML_PRE = ''
var HTML_PRD = ''

var HTML_LOCATION = 'http://10.16.46.41:8080/#/'

console.log(HOST_NAME);

if(HOST_NAME === 'h5.yaomaiche.com') {
  YMC_HTTP_URL.JAVA_URL = HTTP_PRD;
  YMC_HTTP_URL.HTML_URL = HTML_PRD;
  
}else if(HOST_NAME === 'h5.private.yaomaiche.app:8080') {

  YMC_HTTP_URL.JAVA_URL = HTTP_GQC;
  YMC_HTTP_URL.HTML_URL = HTML_GQC;

}else if(HOST_NAME === 'h5.private.yaomaiche.app:9090') {

  YMC_HTTP_URL.JAVA_URL = HTTP_PRE;
  YMC_HTTP_URL.HTML_URL = HTML_PRE;

}else if(HOST_NAME === '10.16.40.41:8080') {

  YMC_HTTP_URL.JAVA_URL = HTTP_DEV;
  YMC_HTTP_URL.HTML_URL = HTML_LOCATION;

}else {
  YMC_HTTP_URL.JAVA_URL = HTTP_DEV;
  YMC_HTTP_URL.HTML_URL = HTML_DEV;
}
  
window.VERSION = '1.0.0';
window.HTTP_SERVER = YMC_HTTP_URL.JAVA_URL;
window.HTML_URL = YMC_HTTP_URL.HTML_URL;